package com.xk.domain.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 年度表(YearType)表实体类
 *
 * @author YaWu
 * @since 2024-12-14 23:52:47
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateYearDto {
    //年度表的id
    @NotNull(message = "年度表的id不能为空")
    private Long yearTypeId;
    //年度表的名字
    @NotNull(message = "年度名称不能为空")
    @Length(min = 1, max = 50, message = "年度名称长度必须在1-50之间")
    private String yearTypeName;
    //开始考试时间
    @NotNull(message = "考试开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date beginTime;
    //结束考试时间
    @NotNull(message = "考试结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    //备注
    private String remark;
}
